import { createBrowserRouter } from "react-router-dom";
import App from "../App";
import Home from '../props/home/Index'
import Message from '../props/message/Index'
const routers = createBrowserRouter([
    {
        path: '/',
        element: <App></App>,
        children: [
            {index:true,element:<Home></Home>},
            {
                path: '/home',
                element: <Home></Home>
            },
            {
                path: '/message',
                element: <Message></Message>
            }
        ]
    }
])
export default routers